package com.yoofn.kotlin.av.adapter

import android.databinding.ViewDataBinding
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import com.yoofn.kotlin.base.BaseFragment

/**
 *
 * Created by kalshen on 17/6/5.
 * @描述 &{TODO}
 */
class HomePagerAdapter(supportFragmentManager: FragmentManager,val pagers:List<BaseFragment<out ViewDataBinding,out Any>>) : FragmentPagerAdapter(supportFragmentManager){
    override fun getItem(p0: Int): Fragment {
        return pagers[p0]
    }

    override fun getCount(): Int {
        return pagers.size
    }


}
